import 'package:json_annotation/json_annotation.dart';

part 'product_model.g.dart';

@JsonSerializable(explicitToJson: true)
class ProductModel extends Type {
  String productLogoUrl = "";
  String productName = "";
  String score = "0";
  String maxAmount = "";
  String interestRate = "";
  int userStatus = 0;

  ProductModel(
      {required this.productLogoUrl,
      required this.productName,
      required this.score,
      required this.maxAmount,
      required this.interestRate,
      required this.userStatus});

  factory ProductModel.fromJson(Map<String, dynamic> json) =>
      _$ProductModelFromJson(json);
  Map<String, dynamic> toJson() => _$ProductModelToJson(this);
}
